﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Runtime.CompilerServices;
using System.Windows.Controls;

namespace PDX.Notification
{
    /// <summary>
    /// Default <see cref="INotificationManagerFactory"/>.
    /// Creates <see cref="ScopeAwareNotificationManager"/>s.
    /// </summary>
    public class DefaultNotificationManagerFactory : INotificationManagerFactory
    {
        /// <summary>
        /// Creates an <see cref="INotificationManager"/> for the specified element.
        /// </summary>
        /// <param name="element">The element.</param>
        /// <returns></returns>
        public INotificationManager Create(IRaiseDependencyPropertyChanges element)
        {
            return new ScopeAwareNotificationManager(element);
        }
    }
}
